﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Users.aspx.cs" 
Inherits="SisLegal.Maestros.Users" MasterPageFile="~/Site.Master"%>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script type="text/javascript">
        
        function verUser(UI) {
            //alert(UI);
            objeto("hid10").value = UI;
            objeto("btnUpUsr").click();
            $('#msgUsuarios').modal('show');
            return false;
        }
        function guardarUser() {
            objeto("btnVUsers").click();
        }
</script>

<asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>

    <div id="pander">
                <div class="titulo13">Usuarios del sistema</div>
                <div id="cjUsuarios" class="cajas">
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="gvUsuarios" runat="server" AutoGenerateColumns="False" 
                        CssClass="table table-hover table-striped" GridLines="None" 
                        DataKeyNames="IDU,SEG_1" onrowdatabound="gvUsuarios_RowDataBound">
                        <Columns>
                            <asp:TemplateField>
                               <ItemTemplate>
                                  <asp:ImageButton ID="btnEdit" runat="server" CausesValidation="False"
                                    CommandName="Editores" ImageUrl="../Public/img/editarot.png" Text="Editor" />
                               </ItemTemplate>
                               <ItemStyle HorizontalAlign="Center" Width="20px" />
                            </asp:TemplateField>
                
                            <asp:BoundField DataField="Usuario" HeaderText="Usuario">
                            <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Nombres" HeaderText="Nombres">
                            <ItemStyle Width="300px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="C. Exp">
                                <ItemTemplate>
                                    <asp:Image ID="img1" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="M. Exp">
                                <ItemTemplate>
                                    <asp:Image ID="img2" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="A. Exp">
                                <ItemTemplate>
                                    <asp:Image ID="img3" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="N. Act">
                                <ItemTemplate>
                                    <asp:Image ID="img4" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="M. Act">
                                <ItemTemplate>
                                    <asp:Image ID="img5" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="A. Exp">
                                <ItemTemplate>
                                    <asp:Image ID="img6" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="Recibe">
                                <ItemTemplate>
                                    <asp:Image ID="img7" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                                   <asp:TemplateField HeaderText="Admin">
                                <ItemTemplate>
                                    <asp:Image ID="img8" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="Abogado">
                                <ItemTemplate>
                                    <asp:Image ID="img9" runat="server" ImageUrl=""/>
                                </ItemTemplate>
                            </asp:TemplateField>
                       </Columns>
                    </asp:GridView>
                        <asp:Button ID="btnVUsers" runat="server" Text="Button" CssClass="ocultado" 
                            onclick="btnVUsers_Click"/>
                    </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
             </div>

             
      <div class="modal fade" id="msgUsuarios" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-dialog" style="width:480px">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
            <h4 class="modal-title" id="H3">Accesos al sistema...</h4>
          </div>
           <div class="modal-body">
               <asp:UpdatePanel ID="UpdatePanel4" runat="server">
               <ContentTemplate>
                   <asp:Button ID="btnUpUsr" runat="server" Text="Button" 
                       onclick="btnUpUsr_Click" CssClass="ocultado"/>
                   <asp:HiddenField ID="hid10" runat="server" />
                   <table>
                    <tr>
                        <td class="titulo13" width="90px;">Usuario :</td>
                        <td><asp:Label ID="lblUsuario" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td class="titulo13">Nombres :</td>
                        <td><asp:Label ID="lblNUsuario" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                   </table>
                        
                    <div class="titulo13">Accesos :</div>
                    <div style="margin-left:90px; font-size:12px; font-weight:normal;"> 
                        <asp:CheckBox ID="chk1" runat="server" Text="&nbsp Crear expedientes" />
                        <br />
                        <asp:CheckBox ID="chk2" runat="server" Text="&nbsp; Modifica expedientes" />
                        <br />
                        <asp:CheckBox ID="chk3" runat="server" Text="&nbsp; Anula expedientes" />
                        <br />
                        <asp:CheckBox ID="chk4" runat="server" Text="&nbsp; Agrega actuados" />
                        <br />
                        <asp:CheckBox ID="chk5" runat="server" Text="&nbsp; Modifica actuados" />
                        <br />
                        <asp:CheckBox ID="chk6" runat="server" Text="&nbsp; Anula actuados" />
                        <br />
                        <asp:CheckBox ID="chk7" runat="server" Text="&nbsp; Recibe expedientes" />
                        <br />
                        <asp:CheckBox ID="chk8" runat="server" Text="&nbsp; Administrador" />
                        <br />
                        <asp:CheckBox ID="chk9" runat="server" Text="&nbsp; Abogado" />
                    </div>
                </ContentTemplate>
               </asp:UpdatePanel>
           </div>


           <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
            <button type="button" class="btn btn-default" data-dismiss="modal" onclick="guardarUser()">Guardar</button>
          </div>
        </div>
      </div>
      </div>
</asp:Content>
